package com.lagou.rocketmq.mapper;

import com.lagou.rocketmq.entity.Order;
import org.apache.ibatis.annotations.Param;

public interface OrderMapper {

    void add(Order order);

    Long updateStatusById(@Param("newStatus") Integer newStatus, @Param("orderId") Long orderId,
                          @Param("oldStatus") Integer oldStatus);

    Integer findStatusById(Long orderId);
}
